﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" exclude-result-prefixes="msxsl" version="1.0">
  <xsl:output indent="yes" method="html" />

  <xsl:template match="/">
    <html>
      <body>
        <h2>My Music Collection</h2>
        <xsl:apply-templates/>
      </body>
    </html>
  </xsl:template>

  <xsl:template match="music">
    <p>
      <xsl:apply-templates select="title"/>
      <xsl:apply-templates select="artist"/>
      <xsl:apply-templates select="price"/>
    </p>
  </xsl:template>

  <xsl:template match="title">
    Title: <span style="color:#FF0000">
      <xsl:value-of select="."/>
    </span>
    <br/>
  </xsl:template>

  <xsl:template match="artist">
    Artist: <span style="color:#00FF00">
      <xsl:value-of select="."/>
    </span>
    <br/>
  </xsl:template>

  <xsl:template match="price">
    Artist: <span style="color:pink">
      <xsl:value-of select="."/>
    </span>
    <br/>
  </xsl:template>


</xsl:stylesheet>